run (function genFunction) : {Promise -> *}
Tun a generator as a coroutine using Promise

function genFunction: Generator function (coroutine) to run

	const {run} = require('zombie/async');
	run(function* () {
		try {
			let result = yield new Promise(...);
		} catch (e) {
			// rejected
		}
		throw new Error();
	})
	.then(function (result) {
		// generator is finished
	})
	.catch(function (e) {
		// an error in generator
	});
# vim: ts=4 noet ai
